//
//  SYHttpManager.h
//  songyao
//
//  Created by work on 16/10/19.
//  Copyright © 2016年 saikuo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SYHttpManager : NSObject

singleton_h(HttpManager)


/**
 *  GET 请求
 *  @param url        请求链接
 *  @param parameters 请求参数
 *  @param success    成功block
 *  @param failure    失败block
 */
- (void)requesGet:(NSString *)url
       parameters:(NSDictionary *)parameters
          success:(void (^)(id responseObject))success
          failure:(void (^)(NSError *error))failure;


/**
 *  POST 请求
 *  @param url        请求链接
 *  @param parameters 请求参数
 *  @param success    成功block
 *  @param failure    失败block
 */
- (void)requestPost:(NSString *)url
         parameters:(NSDictionary *)parameters
            success:(void (^)(id responseObject))success
            failure:(void (^)(NSError *error))failure;

@end
